//-------------------------------------------------------------------
//	Copyright (c) 2010-2012  Zhirnov Andrey
//	This file is part of the "UXGEN" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------

#ifndef _UX_MESH_LOADER_H
#define _UX_MESH_LOADER_H

#include "LoaderHeaders.h"

namespace Engine
{
namespace Loaders
{

	bool LoadModel(IFilePtr pFile, TMesh *pMesh, TMeshAnimation *pAnimation,
					TMeshMaterial *pMaterial, TMeshPhysics *pPhysics, e_model_component::type *pType);
	
	bool SaveModel(IFilePtr pFile, const TMesh *pMesh, const TMeshAnimation *pAnimation,
					const TMeshMaterial *pMaterial, const TMeshPhysics *pPhysics);

	bool GetModelComponents(IFilePtr pFile, e_model_component::type &eType);

	bool GetMeshDataSize(IFilePtr pFile, uint &uVerticesSize, uint &uIndicesSize);

//-------------------------------------------------------------------

}	// Loaders
}	// Engine

#endif	// _UX_MESH_LOADER_H